package org.fixed.dubboconsumer.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author [xuzhongwei]
 * @see [相关类/方法]
 * @since 2019/8/22
 */
@Component
@ConfigurationProperties(prefix = "dubbo.config")
public class DubboCallProperties {

    public Map<String, Config> properties=new HashMap<>();

    public Map<String, Config> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, Config> properties) {
        this.properties = properties;
    }

    public static class Config {

        private String remoteUrl;

        private String registryAddress;

        public String getRemoteUrl() {
            return remoteUrl;
        }

        public void setRemoteUrl(String remoteUrl) {
            this.remoteUrl = remoteUrl;
        }

        public String getRegistryAddress() {
            return registryAddress;
        }

        public void setRegistryAddress(String registryAddress) {
            this.registryAddress = registryAddress;
        }
    }
}
